﻿/*
 * date：2023/4/24
 * author：max
 * subject：会员收件人地址模型
 * 
 * **/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2010A.Shopping.Domain
{

    /// <summary>
    /// 会员地址模型
    /// </summary>
    public class MemberAddressModel : AuditField<Guid>
    {

        /// <summary>
        /// 会员ID
        /// </summary>
        [Required]
        public Guid MemberId { get; set; }

        /// <summary>
        /// 收件 人姓名
        /// </summary>
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>

        [Required]
        public string Address { get; set; }

        /// <summary>
        /// 收件人电话
        /// </summary>

        [Required]
        public string Phone { get; set; }

        /// <summary>
        /// 收件人城市
        /// </summary>

        [Required]
        public string City { get; set; }


        /// <summary>
        /// 是否为默认地址
        /// </summary>

        [Required]
        public bool IsDefaultAddress { get; set; } = false;
    }

}
